#!/bin/sh
# filename: mfparameters
# description: setup parameters

#     Copyright © 2012-2013 Toan Nguyen <toan.nguyen@monash.edu>
#
#     This file is part of Xglom.
# 
#     This is free software: you can redistribute it and/or modify
#     it under the terms of the GNU General Public License as published by
#     the Free Software Foundation, either version 3 of the License, or
#     (at your option) any later version.
# 
#     This is distributed in the hope that it will be useful,
#     but WITHOUT ANY WARRANTY; without even the implied warranty of
#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#     GNU General Public License for more details.
# 
#     You should have received a copy of the GNU General Public License
#     along with this program.  If not, see <http://www.gnu.org/licenses/>.


if [ -z "$MFLUX_HOST" ]
then {
    MFLUX_TRANSPORT=HTTPS;
    MFLUX_HOST=130.194.90.2;
    MFLUX_PORT=8443;
    MFHOSTNAME='localhost';

    # DARIS
    #MFLUX_TRANSPORT=HTTPS;
    #MFLUX_HOST=130.194.245.115;
    #MFLUX_PORT=8443;
    #MFHOSTNAME='daris';   

    MFLUX_SID_FILE=~/MFLUX_SID_$MFHOSTNAME;
    export MFLUX_TRANSPORT;
    export MFLUX_HOST;
    export MFLUX_PORT;
    export MFHOSTNAME;
    export MFLUX_SID_FILE;
}
fi

# parameters for uploading DICOM to DaRIS
if [ -z "$DICOM_SERVER" ]
then {
    DICOM_SERVER=130.194.90.2;
    DICOM_PORT=6670;
    DICOM_CALLING_AET=MBI-TOAND;
    DICOM_CALLED_AET=TOAND-SCP;

    # DARIS
    #DICOM_SERVER=130.194.245.115;
    #DICOM_PORT=6666;
    #DICOM_CALLING_AET=MBI-TOAND;
    #DICOM_CALLED_AET=MON-DARIS;

    export DICOM_SERVER;
    export DICOM_PORT;
    export DICOM_CALLING_AET;
    export DICOM_CALLED_AET;
}
fi
